package com.wish.base.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.Page;
import com.wish.base.dto.CwDealPaySum;
import com.wish.base.dto.CwDealPerDayDetailReceiptDto;
import com.wish.base.dto.CwDealPerDayDto;
import com.wish.base.dto.SaveHaiLianDealPerDayRequest;
import com.wish.base.entity.CwCheckBatch;
import com.wish.base.entity.CwDealPerDay;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author group02
 * @since 2022-05-23
 */
public interface CwDealPerDayMapper extends BaseMapper<CwDealPerDay> {

    List<CwDealPerDay> listShow(@Param("vo")CwDealPerDayDto cwDealPerDayVo);

    CwDealPerDayDto sumList(CwDealPerDayDto cwDealPerDayVo);

    IPage<CwDealPerDayDetailReceiptDto> shourumingxi(Page<CwDealPerDayDetailReceiptDto> page, @Param("vo")CwDealPerDayDto cwDealPerDayVo);

    IPage<CwDealPerDayDetailReceiptDto> shouRuMingXiZhiChu(Page<CwDealPerDayDetailReceiptDto> page, @Param("vo")CwDealPerDayDto cwDealPerDayVo);

    CwDealPaySum chaKanXinXiTongJi1(CwDealPerDayDto cwDealPerDayVo);

    /**
     * 批处理用：对指定商户、指定日期的商户营业报表收入明细数据汇总保存
     * @param saveDealPerDayRequest
     */
    void saveDealPerDayIncome(SaveHaiLianDealPerDayRequest saveDealPerDayRequest);

    /**
     * 批处理用：对指定商户、指定日期的营业报表支出明细数据每天汇总保存
     * @param saveDealPerDayRequest
     */
    void saveDealPerDayOutcome(SaveHaiLianDealPerDayRequest saveDealPerDayRequest);

}
